package com.nondo.rdp.finance.model.course;

import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnore;

public class StageCourseBean {
	private Long id; // 主键ID
	private int type; // 类型：0=新手上路，1=基本面选股，2=技术面选股
	@Deprecated
	private Long groupId; // 课程组ID
	private String cid; // 课程ID
	
	public static interface Add {};
	public static interface Update {};

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@NotNull(groups = { Add.class,Update.class }, message = "类型不能为空")
	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	@JsonIgnore
	public Long getGroupId() {
		return groupId;
	}

	public void setGroupId(Long groupId) {
		this.groupId = groupId;
	}

	@NotNull(groups = { Add.class,Update.class }, message = "课程ID不能为空")
	public String getCid() {
		return cid;
	}

	public void setCid(String cid) {
		this.cid = cid;
	}

}
